<template>
  <div class="login-box">
    <div class="title relative">
      <div class="text">{{ 'MINI-题库' }}</div>
      <!-- <div class="sub-title text-[16px] absolute right-4 bottom-4">
        {{ '——' + systemInfo.companySubName || '' }}
      </div> -->
    </div>
    <div class="content px-[50px] pt-[50px]">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="scss">
.login-box {
  transition:
    width 0.1s ease,
    height 0.1s ease;
  width: 430px;
  max-width: 430px;
  background-color: rgba(255, 255, 255, 0.3);
  .title {
    font-size: 40px;
    // background-color: pink;
    width: 100%;
    height: 150px;
    font-weight: 100;
    color: #fff;
    padding-top: 0px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;

    .text {
      text-align: center;
      -webkit-box-reflect: below -8px -webkit-gradient(
          linear,
          left top,
          left bottom,
          from(transparent),
          color-stop(60%, transparent),
          color-stop(70%, rgba(255, 255, 255, 0)),
          to(rgba(255, 255, 255, 0.3))
        );
      background-image: -webkit-linear-gradient(60deg, #ffffff, #14a1ff);
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  .content {
    height: 430px;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.8);
    :deep(.n-divider:not(.n-divider--vertical)) {
      margin-top: 0px;
      margin-bottom: 0px;
    }
    :deep(.n-divider:not(.n-divider--dashed) .n-divider__line) {
      background-color: rgba(0, 0, 0, 0.2);
    }
  }
}

@media (max-width: 767px) {
  .login-box {
    width: 100%;
    min-width: 430px;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    .content {
      height: calc(100vh - 150px);
    }
  }
}
</style>
